<?php

namespace apiend\modules\passport\controllers;

use Yii;
use apiend\components\Controller;

/**
 * 客户端自动登录
 * @author emhome <emhome@163.com>
 * @since 2.0
 */
class AutoController extends Controller {

    /**
     * @inheritdoc
     */
    protected function verbs() {
        return [
            '*' => ['GET'],
        ];
    }

    /**
     * 自动登录
     * @return mixed
     */
    public function actionIndex() {
        return $this->user;
    }

}
